package com.xinjun.kingstar.ui.fragments.setting.child;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.View;

import com.hengjun.kingstar.sdk.base.BasePresenter;
import com.hengjun.kingstar.sdk.base.fragment.BaseMVPCompatFragment;
import com.xinjun.kingstar.R;
import com.xinjun.kingstar.contract.setting.SettingContract;
import com.xinjun.kingstar.presenter.setting.SettingPresenter;

/**
 * Created by SC-02 on 2018/9/19.
 * 子HomeFragment
 * 1继承BaseMVPCompatFragment
 * 2必须实现契约类里面的view接口并且重写对应的方法（该fragment有请求就必须实现，重写，不然会报错）
 */

public class SettingFragment extends BaseMVPCompatFragment<SettingContract.SettingPresenter> implements SettingContract.ISettingView {

    @NonNull
    @Override
    public BasePresenter initPresenter() {
        return SettingPresenter.newInstance();
    }

    @Override
    public int getLayoutId() {
        return R.layout.fragment_setting_child;
    }

    @Override
    public void initUI(View view, @Nullable Bundle savedInstanceState) {

    }
    /**
     * 提供实例化对象
     *
     * @return
     */
    public static SettingFragment newInstance(){
        return new SettingFragment();
    }
}


